<?php

if (! $_GET['kdhapus']=="") {
	include_once "koneksi.php";
	$sql = " DELETE FROM syarat
			 WHERE idSyarat ='".$_GET['kdhapus']."'";
	mysql_query($sql, $koneksi) 
		  or die ("Gagal query hapus".mysql_error());
	
	echo "Data Syarat berhasil dihapus";
	include "syarat.php";
}
else {
	include "syarat.php";
	exit;
}
?>
